package cn.com.doone.common.uc.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.doone.common.uc.service.IPhoneCodeService;
import cn.com.doone.common.uc.service.dto.PhoneCode;
import cn.com.doone.common.uc.web.dao.PhoneCodeDao;
@Service("phoneCodeService")
public class PhoneCodeServiceImpl implements IPhoneCodeService {

	@Autowired
	private PhoneCodeDao phoneCodeDao;
	@Override
	public Map<String, Object> findUserInfoByAccountAndPhone(Map<String, Object> map) {
		return phoneCodeDao.findUserInfoByAccountAndPhone(map);
	}
	@Override
	public void insert(PhoneCode phoneCode) {
		phoneCodeDao.save(phoneCode);
		
	}
	@Override
	public void updatePhoneCode(PhoneCode phoneCode) {
		phoneCodeDao.updatePhoneCode(phoneCode);
		
	}
	@Override
	public List<Map<String, Object>> findPhoneCodeByAccountAndPhone(Map<String, Object> map) {
		return phoneCodeDao.findPhoneCodeByAccountAndPhone(map);
	}
	@Override
	public void updateUserPassword(Map<String, Object> map) {
		phoneCodeDao.updateUserPassword(map);
		
	}
	@Override
	public List<Map<String, Object>> searchUserByAccountAndPhone(Map<String, Object> map) {
		return phoneCodeDao.searchUserByAccountAndPhone(map);
	}
	
}
